<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>Document</title>
		<script src="./vue.global.js"></script>
		<link rel="stylesheet" href="./index.css" />
		<link rel="stylesheet" href="./table.css" />
		<link rel="stylesheet" href="./pugong.css" />
		<link rel="stylesheet" href="./utils.css" />
		<script src="./index.full.js"></script>

		<script>
			//适配代码
			(function(doc, win) {
				var docEI = doc.documentElement,
					resizeEvt =
					"orientationchange" in window ? "orientataionchange" : "resize",
					recalc = function() {
						var clientWidth = docEI.clientWidth;
						if (!clientWidth) return;
						//100是字体大小，1536是开发时浏览器窗口的宽度，等比计算
						docEI.style.fontSize = 100 * (clientWidth / 1536) + "px";
					};

				if (!doc.addEventListener) return;
				win.addEventListener(resizeEvt, recalc, false);
				doc.addEventListener("DOMContentLoaded", recalc, false);
			})(document, window);
		</script>
		<style>
			* {
				/* margin: 0;
        padding: 0; */
				font-size: 0.15rem;
			}
		</style>
	</head>

	<body>
		<div id="app" class="table-content text-left ">
			<h3 class="text-center mb-2" style="font-size: 0.25rem">安全操作规程告知书</h3>

			<div class="text-indent">1、司机必须经过专门技术培训，了解机械性能、构造和保养规程，熟悉操作方法和交通规则，并经考试合格后，持有驾驶执照，方可单独操作。</div>
			<div class="text-indent">2、严禁酒后和精神失常的司机操作。</div>
			<div class="text-indent">3、操作时，女同志须把头发扎在帽子里。</div>
			<div class="text-indent">4、装载机不能在倾斜度较大的场地上作业；作业区内不准有障碍物及无关人员；挖掘时掌子面不得留伞沿，不得挖顽石，不得利用铲斗吊重物和举人；推料时不得转向。</div>
			<div class="text-indent">5、发动机未停止运转前，司机不得离开驾驶室。</div>
			<div class="text-indent">6、夜间或洞内作用时，机上灯光齐全完好；作用场地必须有足够的照明。</div>
			<div class="text-indent">7、检查保养时，应把机车停放在平坦地面上。检修人员进入车底前，必须用保险装置预先将操纵杆锁住。</div>
			<div class="text-indent">8、装载机行使时应将铲斗离地500mm左右。行使中不得无故升降或翻转铲斗。</div>
			<div class="text-indent">9、在陡坡路上停车，不准踩离合器，而必须使用制动踏板，以防止切断动力发生溜车事故。</div>
			<div class="text-indent">10、停机时，机车应放在平坦坚实的地面上，不妨碍其他车辆通行的地方，并将铲斗落地。</div>
			<div class="text-indent">11、装载机装有报警蜂鸣装置。在行使或作用中蜂鸣器“鸣叫”时，必须立即停车检查，排除故障。</div>
			<div class="text-indent">12、检查燃油时，不准吸烟，不准用明火照明。</div>
			<div class="text-indent">13、停机前，发动机应怠速运转5min，待其温度降低后，使用停机手柄熄火。应防止突然停车熄火。然后，将起动开关转到零位，断开电源，并将各操纵杆置于空档位置。</div>




			<div class="d-flex flex-row mt-2 justify-content-between">
				<div>
					<div @click="setUpEquipment('operateForm.announcer','TaskSignFinger')">告知者（签字）： </div>
					<el-image v-show="operateForm.announcer" class="sign_img" :src="operateForm.announcer" fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
				<div>
					<div @click="setUpEquipment('operateForm.announcerd','TaskSignFinger')">被告知者（签字）：</div>
					<el-image v-show="operateForm.announcerd" class="sign_img" :src="operateForm.announcerd"
						fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year1" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month1" class="people-input" placeholder=" "
							style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day1" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
			</div>

		</div>
		<script>
			const {
				createApp,
				reactive,
				toRefs,
				ref,
				onMounted
			} = Vue;
			const vue3Composition = {
				setup() {
					const operateForm = ref({
						year: "",
						month: "",
						day: "",
						year1: "",
						month1: "",
						day1: "",
						announcer: "", //告知者
						announcerd: '', //被告知者
					});

					window.setSign = (event) => {
						operateForm.value[event.key] = event.img;
					};


					window.getData = (event) => {
						return operateForm.value;
					};
					window.setData = (data) => {
						operateForm.value = data;
					};

					//peopleForm.sign
					const setUpEquipment = (key, type) => {
						window.parent.childListener({
							key,
							type,
						});
					};
					return {
						operateForm,
						setUpEquipment,
					};
				},
			};
			const app = createApp(vue3Composition)
				.use(ElementPlus)
				.mount("#app");
		</script>
	</body>
</html>